package controller

import (
	"encoding/json"

	"github.com/gin-gonic/gin"
)

func GetRawData(c *gin.Context) map[string]interface{} {
	var data map[string]interface{}
	rawData, _ := c.GetRawData()
	json.Unmarshal(rawData, &data)
	return data
}
